package com.pmes.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pmes.dao.UserDao;
import com.pmes.model.User;
import com.pmes.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {

	@Resource
	private UserDao userDao;
	
	public User getUserById(Integer id) {
		return null;
	}

	public void insertUser(User user) {

	}

	public int updateUser(User user) {
		return 0;
	}

	public User getUserByLogin(User user) {
		User u = userDao.getUserByLogin(user);
		return userDao.getUserByLogin(user);
	}

}
